package com.zjh.workflow.flowable.service;


import com.zjh.workflow.flowable.entity.ProcessDefineList;
import org.flowable.engine.repository.Deployment;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ProcessService {

    String getProcessDefinitionXmlStrByProcessId(String processDefinitionId);

    String getProcessDefinitionXmlStrByProcessInstanceId(String processInstanceId);

    Deployment deployFlowViaMultiFile(String flowName, MultipartFile file);

    List<ProcessDefineList> getAllLatestProcessDefinitions();

    Boolean deleteDeployByProcessKey(String processKey);

    Boolean deleteDeployByProcessId(String processId);
}
